package com.jarvis.hospital.patient.adapter;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jarvis.hospital.R;
import com.jarvis.hospital.patient.model.MessageModel;
import com.jarvis.hospital.patient.model.TaskModel;

import java.util.List;

/**
 * Created by jarvis.liu on 9/12/2016.
 */
public class PatientTaskAdapter extends BaseQuickAdapter<TaskModel> {
    public PatientTaskAdapter(int layoutResId, List<TaskModel> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, TaskModel taskModel) {
        baseViewHolder
                .setText(R.id.tv_time, taskModel.getMedicineStartPlan())
                .setText(R.id.tv_name, taskModel.getDoctorName())
                .setText(R.id.tv_medicine_name, taskModel.getMedicineName())
                .setText(R.id.tv_value, taskModel.getMedicineComment());
    }
}
